﻿using FikriKibar.Entities.Composite.UserModels;
using FikriKibar.Globalization;
using FluentValidation;

namespace FikriKibar.Common.Validation.FluentValidation.User
{
    class ForgotPasswordRules : AbstractValidator<UpdateModel>
    {
        public ForgotPasswordRules()
        {
            RuleFor(p => p.Email).NotEmpty().WithMessage(Resources.EmailNotEmpty);
            RuleFor(p => p.Email).EmailAddress().WithMessage(Resources.EmailInValid);

        }
    }
}
